import QtQuick 2.0
import QtQuick.Controls 2.12
import Qt.labs.platform 1.1

Item {
    width: 100
    height: 200

    signal appendList(string filePath)

    Button{
        text: "扫描目录"
        onClicked: {
//            appendList("hello")
            folderDialog.open()
        }
    }
    FolderDialog {
        id: folderDialog
//        options: FolderDialog.ShowDirsOnly
//        currentFolder: viewer.folder
        folder: StandardPaths.standardLocations(StandardPaths.DocumentsLocation)[0]
    }
}
